<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta content="text/html; charset=utf8" http-equiv="Content-Type">
            <title>公告列表页面</title>
            <link href=" <?php
echo base_url("css/style.css");
?>" type="text/css" rel="stylesheet">
                </head>
                <body>
                    <div class="content">
                        <div class="main">
                            <div class="bar"><b>消息列表</b><span>点击添加：<a href="
                                <?php
                      echo    site_url("admin/addmessage");   
                            ?>">最新消息</a></span></div>
                            <div class="left">
                                <dl class="list">
                                    <dt style="width: 750px;"><span class="N1">编号</span><span class="N2">标题</span><span class="N3">日期</span><span class="N4">操作</span></dt>
                                    
             <?php 
            
             foreach($rows as $key=>$val){
           $editurl=site_url("admin/messagedit"); 
           $delurl=site_url("admin/messagdel"); 
           $time=date("Y-m-d",$val["time"]);
       echo "<dt style=\"width: 750px;\">
<span class=\"N1\">{$val["id"]}
</span><span class=\"N2\">
<a href=\"\">{$val["title"]}</a></span><span class=\"N3\">{$time}</span><span class=\"N4\"><a href=\"{$editurl}/{$val["id"]}\">编辑</a>|<a href=\"{$delurl}/{$val["id"]}\">删除</a></span></dd>                   

"; 

}        
             ?>      </dl>
<!--                                <div class="more2"><a href="http://www.865171.cn/"><img src="dongtai2_files/more1.jpg"></a><a href="http://www.865171.cn/"><img src="dongtai2_files/more2.jpg"></a><a href="http://www.865171.cn/">1</a><a href="http://www.865171.cn/">2</a><a href="http://www.865171.cn/">3</a><a href="http://www.865171.cn/">4</a><a href="http://www.865171.cn/"><img src="dongtai2_files/more3.jpg"></a><a href="http://www.865171.cn/"><img src="dongtai2_files/more4.jpg"></a></div>-->
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </body>
                </html>